/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: qian
 * Date: 2022-09-18
 * Time: 16:39
 */

import java.util.*;

interface A{
    int a=10;
    void eat();
}
class Person{
    Person(){
    }
    Person(int age){
        this.age=age;
    }
    Person(String name,int age){
        this.name=name;
        this.age=age;
    }
    String name;
    int age;
}
public class Test {
    public static List<List<Integer>> generate1(int numRows){
        List<List<Integer>> ret = new ArrayList<>();
        List<Integer> list1 = new ArrayList<>();
        list1.add(1);
        ret.add(list1);
        for (int i = 1; i < numRows ; i++) {
            List<Integer> curRow = new ArrayList<>();
            curRow.add(1);
            List<Integer> preRow = new ArrayList<>();
            for (int j = 1; j < i ; j++) {
                int num = preRow.get(j) + preRow.get(j-1);
                curRow.add(j,num);
            }
            curRow.add(1);
            ret.add(curRow);
        }
        return ret;

    }
    public static void main(String[] args) {
        Queue<Integer> queue=new LinkedList<>();
        System.out.println(queue.size());
    }

    public static void main7(String[] args) {
        int[] arr=new int[10];
        int i=0;
        Scanner sc=new Scanner(System.in);

    }
    public static void main6(String[] args) {
        Scanner sc=new Scanner(System.in);
        while(sc.hasNext()){
            int a=sc.nextInt();
            System.out.println(a);
            int b=sc.nextInt();
            System.out.println(b);
        }
    }
    public static int[] find(int[]arr,int key){
        int []arr1=new int [2];
        int j= arr.length-1;
        for (int i = 0; i < arr.length ; i++) {
            while (i<j){
                if(arr[i]+arr[j]!=key)
                {
                    j--;
                } else if (arr[i]+arr[j]==key) {
                    arr1[0]=i;
                    arr1[1]=j;
                    return arr1;
                }
            }
        }
        return arr1;
    }
    public static void main5(String[] args) {
        int []arr= {2,7,11,15};
        int target=9;
        System.out.println(Arrays.toString(find(arr, 20)));

    }

    public static void main1(String[] args){
        // TODO Auto-generated method stub
        System.out.println("欢迎使用职工工资计算系统!");
        System.out.println("选择进行操作的类型:1.用户类型选择 2.单个职工工资计算 3.多个职工工资计算 4.退出");

        Scanner sc = new Scanner(System.in);
        int op = sc.nextInt();


        boolean opResult = op == 1 || op== 2|| op == 3|| op == 4;
        String result = opResult?"您选择的是1~4":"您的选择不在1~4之间";
        System.out.println(result);

        System.out.println("请输入职工姓名:");
        String empName = sc.next();
        System.out.println("职工姓名:" + empName);


        System.out.println("请输入职工性别: 男 true 女 false");
        boolean sex = sc.nextBoolean();
        System.out.println("性别："+(sex?'男':'女'));

        System.out.println("计算工资");
        System.out.println("请输入基本工资");
        double basicPay = sc.nextDouble();

        System.out.println("请输入津贴:");
        float allowance = sc.nextFloat();

        System.out.println("请输入奖金:");
        int bonus = sc.nextInt();

        double salary = basicPay + allowance + bonus;
        System.out.println("工资:" + salary);


    }
}

